<template>
  <div>
    <DynamicTable
      class="table-container"
      :data="data"
      :showPagination="false"
      :columns="tableColumns"
      @pagination="()=>{}"
    />
  </div>
</template>

<script lang="jsx">
import { defineComponent, watch, computed, reactive, ref } from "vue";
import DynamicTable from "@/components/DynamicTable";
export default defineComponent({
  name: "RequestParams",
  props: {
    data: {
      type: Array,
      default: () => []
    },
  },
  components: { DynamicTable },
  setup(props, { emit }) {
    const tableData = reactive([])
    const tableColumns = ref([
      {
        label: "参数",
        minWidth: "200px",
      },
      {
        label: "是否必填",
        key: "srcName",
        width: "100px",
      },
      {
        label: "参数类型",
        key: "srcType",
        minWidth: "100px",
      },
      {
        label: "描述",
        key: "srcName",
        minWidth: "200px",
      },
      {
        label: "值",
        key: "srcName",
        minWidth: "150px",
      }
    ]);
    return {
      tableColumns
    };
  },
});
</script>

<style lang="scss" scoped>
.info-container {
  padding: 15px 0;
  padding-left: 10px;
  .el-col {
    margin-top: 15px;
  }
  .info-block {
    label {
      font-size: 14px;
      font-weight: 600;
      color: #3c475d;
      line-height: 20px;
    }
    span {
      font-size: 14px;
      font-weight: 400;
      color: #3c475d;
      line-height: 20px;
    }
  }
}
</style>
